<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "dh_base_img".
 *
 * @property integer $id
 * @property string $img_url
 * @property integer $upload_time
 * @property integer $is_out
 * @property integer $goods_id
 * @property integer $is_deleted
 */
class DhBaseImg extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'dh_base_img';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['upload_time', 'is_out', 'goods_id', 'is_deleted'], 'integer'],
            [['img_url'], 'string', 'max' => 256]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => '编号',
            'img_url' => '图片地址',
            'upload_time' => '上传时间',
            'is_out' => 'Is Out',
            'goods_id' => 'Goods ID',
            'is_deleted' => 'Is Deleted',
        ];
    }
}
